package org.example.cassell_client.service.fallback;

import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.example.cassell_client.entity.vo.Bulletin_Content_vo;
import org.example.cassell_client.service.BulletinServiceClient;
import org.example.entity.Base.Result;
import org.springframework.cloud.openfeign.FallbackFactory;

import java.util.List;

@Slf4j
public class BulletinClientFallbackFactory implements FallbackFactory<BulletinServiceClient> {

    @Override
    public BulletinServiceClient create(Throwable cause) {
        return new BulletinServiceClient() {

            @Override
            public Result<PageInfo> list(int PageNumber, int PageSize) {
                return null;
            }

            @Override
            public Bulletin_Content_vo getContent(Integer id) {
                return null;
            }

            @Override
            public List bulletinl() {
                return List.of();
            }
        };
    }
}
